$(function () {
    vipspa.start({
        view: '#ui-view',
        errorTemplateId: '#error', // 可选
        router: {
            'firstPage': {
                templateUrl: '../public/views/firstPage.html',
                controller: '../public/js/firstPage.js'
            },
            'questionPage': {
                templateUrl: '../public/views/questionPage.html',
                controller: '../public/js/questionPage.js'
            },
            'statistics': {
                templateUrl: '../public/views/statistics.html',
                controller: '../public/js/statistics.js'
            },
            'resultPage': {
                templateUrl: '../public/views/resultPage.html',
                controller: '../public/js/resultPage.js'
            },
            'defaults': 'firstPage' //默认路由
        }
    });
});
